import math
from dateutil.relativedelta import relativedelta

loopNum = 9
totalStockIdNum = 251
splitStocksNum = math.floor(totalStockIdNum/loopNum)
for i in range(0,loopNum):
    for j in range (0,splitStocksNum):
        print (i*splitStocksNum+j)

if (totalStockIdNum % loopNum) != 0:
    print('mod not 0')
else:
    print('mod 0')

startDate = startDate + relativedelta(months=1)

print('new:' + str((loopNum-1)*splitStocksNum + splitStocksNum-1))
